package com.liuyu.common.framework;

import com.liuyu.common.framework.web.log.aspect.AbstractWebLogAspect;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: liuyu
 * @date: 2022/3/17 18:55
 * @version:
 */
@Aspect
@Component
@Order(1)
@Slf4j
public class WebAopLogAspect extends AbstractWebLogAspect {
    public WebAopLogAspect() {
        log.info("日志切面创建成功");
    }

    /**
     * ..表示本机以及下级。  || execution(public * com.allens.test.service..*(..))
     *
     * @return void
     * @Pointcut("@annotation(org.springframework.web.bind.annotation.PostMapping)|| execution(public * com.allens.test.service.. * ( ..))")  多个配置。
     * @author liuyu
     * @date 2021/11/26 9:05
     */
    @Pointcut("execution(public * com.liuyu.common.framework..*Controller.*(..))")
    @Override
    public void webLogPointcut() {

    }
}
